<!DOCTYPE html>
<html>
{include file="public/head"}

<body>
    {include file="public/nav"} {include file="public/nav-2"}
    <div class="layui-container">
        <div class="layui-row layui-col-space15">
            <div class="layui-col-md8">



                <div class="fly-panel-title" style="text-align: center;">
                    <h1>{$tag_name}</h1>
                </div>
                <div style="text-align: center;">
                    {$page}
                </div>
                <div class="fly-panel" style="margin-bottom: 0;">
                    <table class="layui-table" lay-even lay-skin="nob">
                        <colgroup>
                            <col width="40">
                            <col width="40">
                            <col >
                            <col width="200">
                        </colgroup>

                        <thead>
                          
                        </thead>
                        <tbody class="problem-list" >
                            {foreach name="list" item="v" key="k"}
                            <tr>
                                <td>
                                    {eq name="v.result" value="0"}<i class="layui-icon" style="font-size: 25px; color: #5FB878;">&#xe618;</i>   {/eq}
                                    {eq name="v.result" value="1"}<i class="layui-icon" style="font-size: 25px; color: #FF5722;">&#xe69c;</i>   {/eq}
                                </td>
                                <td>
                                    {$v.problem_id}
                                </td>
                               <!--  <td>
                                    <h3>
                                        <a href="{:url('web/Problem/problem','pid='.$v['problem_id'])}" >{$v.title} 
                                        </a>
                                    {if condition="isset($tag_lists[$v.problem_id])"}
                                    {volist name="tag_lists[$v.problem_id]" id="vo" key="kk" empty=""}
                                    <a href="{:url('web/classify/index',['tid'=>$vo.tag_id])}" class="layui-badge layui-bg-blue">{$vo.tag_name}</a>
                                    {/volist}
                                    {/if}
                                </td> -->
                                <td>
                                    <h3 style='float: left;'>
                                            <a href="{:url('web/Problem/problem','pid='.$v['problem_id'])}" class="fly-link fly-joinad">{$v.title}</a>
                                        </h3>
                                    <div class="display_tag" style='float: right;'>
                                        {if condition="isset($tag_lists[$v.problem_id])"} {volist name="tag_lists[$v.problem_id]" id="vo" key="kk" empty=""}
                                        <a href="{:url('web/classify/index',['tid'=>$vo.tag_id])}" class="layui-badge layui-bg-blue">{$vo.tag_name}</a> {/volist} {/if}
                                    </div>
                                </td>
                                <td style='text-align: right;'>
                                    {if condition="$v.accepted==0"}
                                    0%
                                    {else /}
                                    {:number_format($v.accepted/$v.submit*100, 2)}%
                                    {/if}
                                    &nbsp;({$v.accepted}/{$v.submit})
<!--                                    <span > 
                                        提交数:{$v.submit}
                                    </span>
                                    <span > 
                                        通过数:{$v.accepted}
                                    </span>-->
                                    <!-- <span style="float:right"> 
                                            来源:{$v.source}
                                        </span> -->

                                </td>   

                            </tr>
                            {/foreach}
                        </tbody>
                    </table>

                </div>
                <div style="text-align: center;">
                    {$page}
                </div>
            </div>
            {include file="public/problemset-side"}
        </div>
    </div>
    {include file="public/foot"}
</body>

</html>